﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmBuscaProveedor.aspx.cs" Inherits="Carozos.Web.frmBuscaProveedor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Large" Text="BÚSQUEDA DE PROVEEDORES"></asp:Label>
    <br />
    <br />
    <table>
        <tr>
            <th>
                <asp:Label ID="Label2" runat="server" Text="Nombre o Razón Social :"></asp:Label>
            </th>
            <th>
                <asp:TextBox ID="txtNombre" runat="server" Width="190px"></asp:TextBox>
            </th>
            <th>
                <asp:ImageButton ID="btnBuscar" runat="server" ImageUrl="~/Img/search.png" />
            </th>
        </tr>
        <tr>
            <th colspan="3">
                <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="codigo" DataSourceID="ProveedorDataSource" OnSelectedIndexChanged="gv_SelectedIndexChanged">
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/Img/camera_test.png" SelectText="" ShowSelectButton="True" />
                        <asp:BoundField DataField="nombre" HeaderText="Nombre" SortExpression="nombre" />
                        <asp:BoundField DataField="dni" HeaderText="Dni" SortExpression="dni" />
                        <asp:BoundField DataField="razonSocial" HeaderText="Razón Social" SortExpression="razonSocial" />
                        <asp:BoundField DataField="ruc" HeaderText="Ruc" SortExpression="ruc" />
                        <asp:BoundField DataField="telefono" HeaderText="Teléfono" SortExpression="telefono" />
                        <asp:BoundField DataField="direccion" HeaderText="Dirección" SortExpression="direccion" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ProveedorDataSource" runat="server" SelectMethod="getProveedorByNombreOrRazonSocial" TypeName="Carozos.BC.ProveedorBC">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txtNombre" Name="pNombre" PropertyName="Text" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </th>
        </tr>
    </table>
</asp:Content>
